/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Beans;

import UI.PMUI;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;

public class ReadMessageBean {
    
    /*private String sender;
    private String message;*/
    private int id;
    private PMUI selected;
    

    

    
    public ReadMessageBean() {
        //HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true);
        //session.getAttribute("User");
        
        
    }
    
    public PMUI getMessage(){
       /* PMUI message;
        try{
            HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true);
            message = (PMUI)session.getAttribute("Message");
        } catch(Exception e){
            message = new PMUI(null, "", 0, "");
        }*/
        return selected;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public PMUI getSelected() {
        return selected;
    }

    public void setSelected(PMUI selected) {
        this.selected = selected;
    }
    
    
    
    
}
